package cn.yunyichina.provider.pay.icbc.main;

import cn.yunyichina.provider.framework.data.SpringContextHandler;
import cn.yunyichina.provider.framework.dubbo.service.impl.YytServiceImpl;
import cn.yunyichina.provider.iface.entity.common.ResCommon;
import cn.yunyichina.provider.iface.entity.pay.icbc.*;
import cn.yunyichina.provider.iface.service.IIcbcPay;
import cn.yunyichina.provider.pay.icbc.service.impl.IcbcWapServiceImpl;

public class IcbcServiceImpl extends YytServiceImpl implements IIcbcPay {

	public String getErrorCode() {
	        return "15000";
	}

	@Override
	public ResCommon<String> icbcWapB2CPay(TransferDataVo vo) {
		 return ((IcbcWapServiceImpl) SpringContextHandler.getBean("icbcWapServiceImpl")).icbcWapB2CPay(vo);
	}

	@Override
	public ResCommon<VerifyDataResponse> icbcWapB2CVerify(String notifyData,
			String signMsg) {
		 return ((IcbcWapServiceImpl) SpringContextHandler.getBean("icbcWapServiceImpl")).icbcWapB2CVerify(notifyData, signMsg);
	}

	@Override
	public ResCommon<OrderQueryResponse> icbcWapB2COrderQuery(
			OrderQueryVo orderQueryVo) {
		return ((IcbcWapServiceImpl) SpringContextHandler.getBean("icbcWapServiceImpl")).icbcWapB2COrderQuery(orderQueryVo);
	}

	@Override
	public ResCommon<RefundDataResponse> icbcWapB2CRefund(
			RefundDataVo refundDataVo) {
		return ((IcbcWapServiceImpl) SpringContextHandler.getBean("icbcWapServiceImpl")).icbcWapB2CRefund(refundDataVo);
	}

	@Override
	public ResCommon<RefundDataQueryResponse> icbcWapB2CRefundQuery(
			RefundDataQueryVo refundDataQueryVo) {
		return ((IcbcWapServiceImpl) SpringContextHandler.getBean("icbcWapServiceImpl")).icbcWapB2CRefundQuery(refundDataQueryVo);
	}
}
